  <%try{ %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="displayTag"%>
<%@ page import = "com.app.sgd.util.SessionConstants" %>
<%@ page import = "com.app.sgd.util.Constants" %>
<%@ page import = "java.util.*" %>

<%ArrayList lstTotal = (ArrayList)session.getAttribute(SessionConstants.LISTA_EXPEDIENTES_MOSTRAR); 
  if(lstTotal == null) lstTotal = new ArrayList();
%>

<html:html>
<script language="JavaScript" src="<%=request.getContextPath()%>/jscript/javascript.js"></script>
<script language="JavaScript" src="<%=request.getContextPath()%>/jscript/validar.js"></script>
<script language="JavaScript" src="<%=request.getContextPath()%>/jscript/checksValida.js"></script>
<script language="JavaScript" src="<%=request.getContextPath()%>/jscript/expediente_js.js"></script>

<script language="JavaScript">

</script>

<BODY>

<html:form styleId="form" action="Expediente.do" method="post" scope="session">
	<input type="hidden" name="method" value=""/>
	<input type="hidden" name="index" value="-1"/>

	
<table id="tabla1" border=0 style="Z-INDEX:102;TOP:5px;top:0;" align="center" width="100%">
<tr>	
<td valign=top align=left>
	<TABLE align="center" width="100%">
		<TR>
		<TD align="center">
			<TABLE width="100%" class="search" cellspacing="0" cellpadding="0" align="center">
				<caption>EDITAR EXPEDIENTE</caption>
				<TBODY>
					<tr> 
					 	<td colspan="2">
					 		<logic:equal name="DocumentoForm" property="codigoEstado" value="<%=Constants.ESTADO_EXPEDIENTE_ABIERTO%>">
					      	<a href="javascript:grabarExpediente()">
					      		<img src="images/toolbar/toolbar_icon_save_disabled.gif" alt="Grabar expediente" name="grabar" width="25" height="25" border="1">
					      	</a>
					      	</logic:equal>
							&nbsp;
							<logic:equal name="DocumentoForm" property="codigoEstado" value="<%=Constants.ESTADO_EXPEDIENTE_ABIERTO%>">
							<logic:notEmpty name="DocumentoForm" property="numeroExpediente">
							<a href="javascript:cerrarExpediente()" >
				            	<img src="images/toolbar/toolbar_archivar.gif" alt="Cerrar expediente" name="cerrar" width="25" height="25" border="1">
				            </a>
				            </logic:notEmpty>
				            </logic:equal>
						</td>
						<td colspan="4" align="right">
							<logic:equal name="DocumentoForm" property="codigoEstado" value="<%=Constants.ESTADO_EXPEDIENTE_CERRADO%>">
								<INPUT type="button" onclick="javascript:reaperturarExpediente()" value=" Reaperturar " class="button">
								&nbsp;&nbsp;&nbsp;
							</logic:equal>
							<logic:equal name="DocumentoForm" property="codigoEstado" value="<%=Constants.ESTADO_EXPEDIENTE_ABIERTO%>">
								<logic:notEmpty name="DocumentoForm" property="numeroExpediente">
								<INPUT type="button" onclick="javascript:anularExpediente()" value=" Anular " class="button">
								&nbsp;&nbsp;&nbsp;
								</logic:notEmpty>
							</logic:equal>
							<INPUT type="button" onclick="javascript:regresarListadoExpedientes()" value="  Regresar  " class="button"> 
						</td>
					</tr>
					<tr>
						<td>
							Expediente Nro:
						</td>
						<td>
							<html:text property="numeroExpediente" disabled="true" styleClass="tEdit"/>
						</td>
						<TD>Fecha:
						</td>
						<td>
							<html:text
								property="fechaExpediente" styleClass="tEdit" style="width:90"
								maxlength="10" onkeypress="javascript:esFecha(event)" disabled="true"/>
						</TD>
					</tr>
					<TR>
						<td>
							Oficina:
						</td>
						<td>
							<html:select property="codigoOficina" disabled="true">
								<html:option value="0"><%=Constants.VALOR_DEFAULT_TODOS%></html:option>
								<html:options collection="<%=SessionConstants.LISTA_CONSULTAS_OFICINAS%>" property="value" labelProperty="label"/>
							</html:select>
						</td>
						<td>
							Estado:
						</td>
						<td>
							<html:select property="codigoEstado" disabled="true">
								<html:option value="0"><%=Constants.VALOR_DEFAULT_TODOS%></html:option>
								<html:options collection="<%=SessionConstants.LISTA_ESTADO_EXPEDIENTE%>" property="value" labelProperty="label"/>
							</html:select>
						</td>
					</TR>
					<tr>
						<td><br/></td>
					</tr>
					<tr>
						<td>Glosa: </td>
						<td>
							<html:textarea property="asuntoExpediente" cols="50" rows="3" styleClass="tEdit"/>
						</td>
					</tr>
					<tr>
						<td><br/></td>
					</tr>
				</TBODY>
			</TABLE>
		</TD>
		</TR>
	</TABLE>
</td>
</tr>
</table>

</html:form>

<iframe width=132 height=142 name="gToday:contrast:agenda.js"
	id="gToday:contrast:agenda.js" src="_commons/calendar/ipopeng.htm"
	scrolling="no" frameborder="0"
	style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>

</BODY>
</html:html>
<%}catch(Exception e) {e.printStackTrace();}%>